package week4.num.ExceptionDemo01.Level4_Project10;

public class Student {
    private double usualScore;
    private double finalScore;

    public Student() {
    }

    public Student(double usualScore, double finalScore) {
        this.usualScore = usualScore;
        this.finalScore = finalScore;
    }

    public double getUsualScore() {
        return usualScore;
    }

    public void setUsualScore(double usualScore) {
        this.usualScore = usualScore;
    }

    public double getFinalScore() {
        return finalScore;
    }

    public void setFinalScore(double finalScore) {
        this.finalScore = finalScore;
    }

    public double getScore(double usualScore,double finalScore)throws Exception{
        double score=usualScore+finalScore/2;
        if (score<60){
            throw new Exception();
        }
        return score;
    }

}
